package com.otitan.la.forest.industry.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;
import java.util.List;

/**
 * 企业信息表
 *
 * @author jiacs
 * @email xxx
 * @date 2020-10-14 10:50:02
 */
@Data
@ApiModel("企业信息表DTO")
public class EnterpriseDTO implements Serializable {
    private static final long serialVersionUID = 1L;


    /**
     * 企业名称
     */
    @NotEmpty(message = "企业名称不能为空")
    @Length(max = 42, message = "企业名称不能超过 42 个字符")
    @ApiModelProperty(value = "企业名称", required = true)
    private String name;



    /**
     * 企业类型
     */
    @NotEmpty(message = "企业类型不能为空")
    @Length(max = 10, message = "企业类型不能超过 10 个字符")
    @ApiModelProperty(value = "企业类型", required = true)
    private String enterType;


    /**
     * 龙头企业批次
     */
    @NotEmpty(message = "龙头企业批次不能为空")
    @Length(max = 36, message = "龙头企业批次不能超过 36 个字符")
    @ApiModelProperty(value = "龙头企业批次", required = true)
    private String batchId;


    /**
     * 经营范围
     */
    @NotEmpty(message = "经营范围不能为空")
    @Length(max = 85, message = "经营范围不能超过 85 个字符")
    @ApiModelProperty(value = "经营范围", required = true)
    private String scopeBusiness;

    /**
     * 经营类型
     */
    @ApiModelProperty(value = "经营类型", required = false)
    // @NotEmpty(message = "经营类型不能为空")
    // @Length(max = 512, message = "经营类型不能超过 512 个字符")
    private String managementType;


    /**
     * 所在行政区编码
     */
    @ApiModelProperty(value = "所在行政区编码", required = true)
    @NotEmpty(message = "所在行政区编码不能为空")
    @Length(max = 32, message = "所在行政区编码不能超过 32 个字符")
    @TableField("\"AREA_CODE\"")
    private String areaCode;



    /**
     * 所在行政区编码
     */
    @ApiModelProperty(value = "所在行政区编码数组", required = true)
    @TableField("\"AREA_CODE\"")
    private List<String> areaCodes;
    /**
     * ids
     */
    @ApiModelProperty(value = "ids", required = false)
    private List<String> ids;

}
